home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
'92_HACK
/
SCROLL_O
/
SBAR_INI
/
SBARINIT.C
Wrap
C/C++ Source or Header
|
1991-07-10
|
632b
|
33 lines
/* This is the source code for the init resource for the cdev. All it */
/* does is display the icons at start-up. */
#define BaseIconID 128
#define LastIconID -4064
#define ProcID 128
#define WordResID -4048
#define NumIcons 8
#define NormalAppFont applFont
#define DelayTime 30L
main()
{
Handle procH;
int i;
long dummy;
if ((procH = GetResource('jROC', ProcID)) != 0l)
{
HLock(procH);
CallPascal(BaseIconID, 0, *procH);
Delay(DelayTime, &dummy);
for (i = 1; i < NumIcons -1; i++)
CallPascal(BaseIconID + i, 0, *procH);
CallPascal(LastIconID, -1, *procH);
HUnlock(procH);
}
}